function changeTap(id) {
	if (id == 1) {
		$("#itemDiv-description").css("display", "block");
		$("#itemDiv-teacher").css("display", "none");
		$("#itemDiv-msg-li-1").css("background-color", "#2274CA");
		$("#itemDiv-msg-li-2").css("background-color", "#DDEAEE");

	}
	if (id == 2) {
		$("#itemDiv-description").css("display", "none");
		$("#itemDiv-teacher").css("display", "block");
		$("#itemDiv-msg-li-2").css("background-color", "#71B83D");
		$("#itemDiv-msg-li-1").css("background-color", "#DDEAEE");
	}
}


function show() {
	//get left data
//	getTeacherList(3);
	getLessonList(3);
	//get teacher info
	var teacherId = getQueryString("teacher_id");

	$.ajax({
		url: "/edu/teacher/getTeacherInfo",
		type: "POST",
		data: {
			teacher_id: teacherId
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$("#itemDiv-image").css("background", "url(" + data.photo_path + ") no-repeat");
				$("#itemDiv-msg-title").html(data.name);
				$("#itemDiv-msg-text1").html(data.edu_bg);
				$("#itemDiv-msg-text2").html(data.remark1);
				$("#itemDiv-description").html(data.intro);
			} else {

			}
		}
	});


	//get teacher's lesson
	$.ajax({
		url: "/edu/lesson/getLessonInfoByTeacherID",
		type: "POST",
		dataType: "json",
		data: {
			teacher_id: teacherId
		},
		async: true,
		success: function(data) {
			if (data.status) {
				$(".lessonItemDiv-item-body").empty();
				$.each(data.rows, function(i, item) {
					var htmlStr = "";
					htmlStr += "<a href='/edu/lesson/lessonInfo.html?lesson_id=" + item.lesson_id + "' id='a0'>";
					htmlStr += "<div class='lessonItem'>";
					htmlStr += "<img class='lessionItemImg' src='" + item.photo_path + "' />";
					htmlStr += "<div class='lessonItemInfo'>";
					htmlStr += "<div class='lessonItemInfo-title'>" + item.name + "</div>";
					htmlStr += "<div class='lessonItemInfo-body'>" + item.hour + "</div>";
					htmlStr += "<div class='lessonItemInfo-body'>" + item.price + "</div>";
					htmlStr += "<div class='lessonItemInfo-body'>" + item.grade + "</div>";
					htmlStr += "</div>";
					htmlStr += "</div>";
					htmlStr += "</a>";

					$(".lessonItemDiv-item-body").append(htmlStr);
				});
		} else {

		}
	}
	});

}